
import React, { Component } from 'react';
import classnames from 'classnames';
import Svg from "../Svg";
import './empty.scss';

let EmptyTips = class extends Component {
  constructor(props) {
    super(props);
  }
  render() {
    let {message,className,type}=this.props;
    return (
      <div className={classnames("empty flex-y",{[`${className||''}`]:true})} >
        <p className="tips-img">
          <Svg {...this.props}/>
        </p>
        <p className="tips-txt">{message||(type&&type=='loading'?'数据正在紧张加载中':'这里空空如也～')} </p>
      </div>
    )
  }
}

export default EmptyTips;